<?php
if(!defined('MY_ROOT'))
{throw new Exception('Access Denied');}
if($_G['uid']<1)
{throw new Exception('Error');}
$online=time()-intval($_SESSION['on']);

$sql="UPDATE ".DB::tpre('member')."SET `online`=`online` +".intval($online)." WHERE `uid`=".$_G['uid'];
DB::query($sql);
?>